@import '../../style/variables.less';
@filterWidth: 30px;
@cellBorderColor: #ddd;

.@{prefix}-header-cell {
    box-sizing: border-box;
    padding: 0px 0px 0 16px;
    border: 1px solid transparent;
    border-right-color: @cellBorderColor;
    border-bottom-color: @cellBorderColor;
    display: flex;
    align-items: center;
    height: 100%;

    &.right-first-one {
        border-left-color: @cellBorderColor;
    }

    &.center-last-one {
        border-right-color: transparent;
    }
}

.@{prefix}-header-cell_wrapper:last-child {
    .@{prefix}-header-cell {
        border-right-color: transparent;
    }
}

.@{prefix}-header-cell_wrapper.left:last-child {
    .@{prefix}-header-cell {
        border-right-color: @cellBorderColor;
    }
}

.@{prefix}-header-cell_wrapper.right:first-child {
    .@{prefix}-header-cell {
        border-left-color: @cellBorderColor;
    }
}

.@{prefix}-header_content {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: bolder;
    color: rgba(0, 0, 0, 0.88);
}

.@{prefix}-header_tooltips {
    display: flex;
    align-self: stretch;
    align-items: stretch;

    &-child {
        width: @filterWidth;
        display: flex;
        align-items: center;
        justify-content: center;

        &:hover {
            cursor: pointer;

            .@{prefix}-cell_tool-icon {
                color: #0088ff;
            }
        }
    }
}

.@{prefix}-cell_tool-icon {
    width: 10px;
    height: 10px;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    color: #c3c9d9;
}